=================================================================================
Replication Materials for:
"Pandemic Digital Media and Adolescents' Parenthood Desires"

Author: Seunghwan (Shawn) Yoo
Contact: syoo7@lsu.edu
Date: September 12, 2025
=================================================================================


OVERVIEW
---------------------------------------------------------------------------------
This archive contains the replication materials for the paper "Pandemic Digital Media and Adolescents' Parenthood Desires," submitted to Demographic Research. The materials include the R script for data preprocessing and the Stata script for the main statistical analysis.


LIST OF FILES
---------------------------------------------------------------------------------
1. 01_Data_Preprocessing.R   - R script to process the raw MTF data and create the final analytical dataset.
2. 02_Analysis.do            - Stata do-file to run all statistical models and replicate all tables and figures in the manuscript.
3. README.txt                - This file, providing instructions on how to use the materials.


SOFTWARE REQUIREMENTS
---------------------------------------------------------------------------------
- R version 4.3.2 or later
  - Required R packages: dplyr, tidyr, haven, VIM, here
- Stata version 18.0 or later


DATA ACCESS INSTRUCTIONS
---------------------------------------------------------------------------------
The raw data for this study are from the Monitoring the Future (MTF) project and are publicly available but with restricted access. The data cannot be redistributed by the author.

To access the data, you must download the following datasets from the Inter-university Consortium for Political and Social Research (ICPSR):
- MTF Series: 12th-Grade Surveys, 2018-2023
- ICPSR Study Numbers: [e.g., 38156 for 2020, etc. - Add all relevant ICPSR numbers]
- Direct Link to Series: https://www.icpsr.umich.edu/web/ICPSR/series/35

Please download the data files (specifically the .rda files for R) and place them in their respective folders as described in the replication instructions below.


REPLICATION INSTRUCTIONS
---------------------------------------------------------------------------------
1.  **Prepare Folder Structure:**
    - Create a main project folder (e.g., "Pandemic_Parenthood_Replication").
    - Inside the main folder, place the three replication files listed above.
    - Inside the main folder, create a subfolder named "Data".
    - Inside "Data", create another subfolder named "Data 2013-2023", and inside that, a folder named "2024 Paper".
    - Place the downloaded raw MTF data folders (e.g., "2023 MTF (ICPSR 38882)") into the "2024 Paper" subfolder.

2.  **Run R Script for Preprocessing:**
    - Open `01_Data_Preprocessing.R` in R or RStudio.
    - Ensure your working directory is set to the main project folder. The `here` package should handle this automatically.
    - Run the entire script. This will generate the final analytical dataset named `Social_Media_Fertility_Weight_2018-2023_Processed.dta` inside the "Data" folder.

3.  **Run Stata Script for Analysis:**
    - Open `02_Analysis.do` in Stata.
    - In the Stata script, update the file path placeholder on line 12 (`use "[FILE PATH]/..."`) to point to the `..._Processed.dta` file generated in the previous step.
    - Run the entire do-file. This will replicate all tables, figures, and analyses presented in the manuscript.